﻿<!DOCTYPE html>

<html>
<head>
    <script src="/Scripts/3rd/impl/jquery-1.8.2.min.js"></script>
    <script src="/Scripts/3rd/impl/doT.min.js"></script>
    <script src="/Scripts/sandbox.js"></script>
</head>
<body>
    <script>
        var rendere = new Sandbox.Renderer();
        window.addEventListener('message', function (event) {
            switch (event.data.command) {
                case 'render':
                    event.source.postMessage({
                        name: name,
                        html: rendere.render(event.data.context)
                    }, event.origin);
                    break;
            }
        });
    </script>
</body>
</html>
